import App from './App'
import Vue from 'vue'
import messages from './locale/index'
import uView from '@/uni_modules/uview-ui'
import {apiPost} from "./common/api/index.js"
import VueI18n from 'vue-i18n'
let i18nConfig = {
  locale: uni.getLocale(),
  messages
}
Vue.use(VueI18n)
Vue.use(uView)
Vue.prototype.$api = apiPost;
const i18n = new VueI18n(i18nConfig)
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
  i18n,
  ...App
})
app.$mount()
